import { request } from "@/utils/service"
import type * as WebSiteConfig from "./types"

/** 增&改 */
export function updateWebSiteConfigApi(data: WebSiteConfig.UpdateWebSiteConfigRequestData) {
  return request({
    url: "webSite",
    method: "post",
    data
  })
}

/** 查 */
export function getWebSiteConfigApi() {
  return request<WebSiteConfig.GetWebSiteConfigResponeseDetailData>({
    url: "webSite",
    method: "get"
  })
}
